package com.yuou.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuou.mapper.MessageMapper;
import com.yuou.mapper.RoleMapper;
import com.yuou.model.Message;
import com.yuou.model.Role;
import com.yuou.service.MessageService;
import com.yuou.service.RoleService;
@Service
public class MessageServiceImpl implements MessageService {
	@Autowired
	private MessageMapper messageMapper;
	@Override
	public List<Message> selectAll(Map<String, Object> map) {
		return messageMapper.selectAll(map);
	}
	@Override
	public int insertMessage(Message message) {
		return messageMapper.insertMessage(message);
	}
	@Override
	public int updateByPrimaryKey(Message message) {
		return messageMapper.updateByPrimaryKey(message);
	}
	@Override
	public Message selectByPrimaryKey(Integer id) {
		return messageMapper.selectByPrimaryKey(id);
	}
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return messageMapper.deleteByPrimaryKey(id);
	}
	@Override
	public int selectByStatus() {
		return messageMapper.selectByStatus();
	}

}
